package cn.gson.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the BACKPLAN database table.
 * 
 */
@Entity
@NamedQuery(name="Backplan.findAll", query="SELECT b FROM Backplan b")
public class Backplan implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(initialValue=1,allocationSize=1,name="BACKPLAN_BPID_GENERATOR", sequenceName="SEQ_3")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="BACKPLAN_BPID_GENERATOR")
	@Column(name="BP_ID")
	private long bpId;

	@Column(name="BP_CO_ID")
	private BigDecimal bpCoId;

	@Column(name="BP_CO_NAME")
	private String bpCoName;

	@Column(name="BP_CUS_ID")
	private BigDecimal bpCusId;

	@Column(name="BP_CUS_NAME")
	private String bpCusName;

	@Column(name="BP_IF_BACK")
	private String bpIfBack;

	@Column(name="BP_MONEY")
	private BigDecimal bpMoney;

	@Column(name="BP_OWNER")
	private String bpOwner;

	@Column(name="BP_PERIOD")
	private BigDecimal bpPeriod;

	@Column(name="BP_REMARKS")
	private String bpRemarks;

	@Temporal(TemporalType.DATE)
	@Column(name="BP_TIME")
	private Date bpTime;

	//bi-directional many-to-one association to ConstactOrder
	@ManyToOne
	@JoinColumn(name="CO_ID")
	private ConstactOrder constactOrder;

	public Backplan() {
	}

	public long getBpId() {
		return this.bpId;
	}

	public void setBpId(long bpId) {
		this.bpId = bpId;
	}

	public BigDecimal getBpCoId() {
		return this.bpCoId;
	}

	public void setBpCoId(BigDecimal bpCoId) {
		this.bpCoId = bpCoId;
	}

	public String getBpCoName() {
		return this.bpCoName;
	}

	public void setBpCoName(String bpCoName) {
		this.bpCoName = bpCoName;
	}

	public BigDecimal getBpCusId() {
		return this.bpCusId;
	}

	public void setBpCusId(BigDecimal bpCusId) {
		this.bpCusId = bpCusId;
	}

	public String getBpCusName() {
		return this.bpCusName;
	}

	public void setBpCusName(String bpCusName) {
		this.bpCusName = bpCusName;
	}

	public String getBpIfBack() {
		return this.bpIfBack;
	}

	public void setBpIfBack(String bpIfBack) {
		this.bpIfBack = bpIfBack;
	}

	public BigDecimal getBpMoney() {
		return this.bpMoney;
	}

	public void setBpMoney(BigDecimal bpMoney) {
		this.bpMoney = bpMoney;
	}

	public String getBpOwner() {
		return this.bpOwner;
	}

	public void setBpOwner(String bpOwner) {
		this.bpOwner = bpOwner;
	}

	public BigDecimal getBpPeriod() {
		return this.bpPeriod;
	}

	public void setBpPeriod(BigDecimal bpPeriod) {
		this.bpPeriod = bpPeriod;
	}

	public String getBpRemarks() {
		return this.bpRemarks;
	}

	public void setBpRemarks(String bpRemarks) {
		this.bpRemarks = bpRemarks;
	}

	public Date getBpTime() {
		return this.bpTime;
	}

	public void setBpTime(Date bpTime) {
		this.bpTime = bpTime;
	}

	public ConstactOrder getConstactOrder() {
		return this.constactOrder;
	}

	public void setConstactOrder(ConstactOrder constactOrder) {
		this.constactOrder = constactOrder;
	}

}